package com.simple.quartz.utils;

import com.simple.quartz.domain.entity.SysJob;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;

/**
 * @Description 定时任务处理（禁止并发执行）
 * @Author xiaoke
 * @Date 2024/8/20 7:18
 * @Version 1.0
 */
@DisallowConcurrentExecution
public class QuartzDisallowConcurrentExecution extends AbstractQuartzJob{
    @Override
    protected void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception {
        JobInvokeUtil.invokeMethod(sysJob);
    }
}
